﻿/* 
 *  <copyright file="LineSegment.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using Microsoft.Xna.Framework;

namespace SobrietyEngine.Geometry
{
    public class LineSegment
    {
        public Vector3[] points { get; set; }
        public Boolean MergedFlag { get; set; }

        public override string ToString()
        {
            String str ="";
            if (points[0]!=null)
                str += points[0].ToString() + "-";
            if (points[1] != null)
                str += points[1].ToString();
            return str;
        }
        public LineSegment()
        {
            MergedFlag = false;
            points = new Vector3[2];
        }
        public LineSegment(Vector3 p1, Vector3 p2)
        {
            points = new Vector3[2];
            points[0] = p1;
            points[1] = p2;
        }
    }
}
